package com.wondertek.service.mapper.business;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wondertek.service.entity.business.DeviceErrorRecordPo;
import com.wondertek.service.entity.business.DeviceErrorRecordReadPo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * @author wangyu
 */
public interface DeviceErrorRecordReadMapper extends BaseMapper<DeviceErrorRecordReadPo> {

    @Update("update device_error_record_read set is_read = 1 where consumer_id = #{consumerId} and der_id = #{derId}")
    void updRead(@Param("consumerId") String consumerId, @Param("derId") String derId);
}
